﻿@{
    Layout = "~/Views/Shared/_LayoutWiki.cshtml";
}

<h2>产品信息相关内容</h2>

<div class="item">
    <h3>查询产品列表（分页）</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/query</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>rows</td>
            <td>是</td>
            <td>每页行数</td>
        </tr>
        <tr>
            <td>page</td>
            <td>是</td>
            <td>当前页数</td>
        </tr>
        <tr>
            <td>categoryid</td>
            <td>否</td>
            <td>产品分类编号</td>
        </tr>
        <tr>
            <td>code</td>
            <td>否</td>
            <td>产品编码</td>
        </tr>
        <tr>
            <td>name</td>
            <td>否</td>
            <td>产品名称（模糊查询）</td>
        </tr>
        <tr>
            <td>exchange</td>
            <td>否</td>
            <td>是否支持兑换的产品（留空则不筛选）</td>
        </tr>
        <tr>
            <td>effective</td>
            <td>否</td>
            <td>是否是生效的产品（留空则不筛选）</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>分页数据</td>
        </tr>
        <tr>
            <td>data.total</td>
            <td>int</td>
            <td>查询产品总数</td>
        </tr>
        <tr>
            <td>data.rows[x].ID</td>
            <td>int</td>
            <td>产品编号</td>
        </tr>
        <tr>
            <td>data.rows[x].Sequence</td>
            <td>int</td>
            <td>产品排序</td>
        </tr>
        <tr>
            <td>data.rows[x].CategoryID</td>
            <td>int</td>
            <td>产品分类编号</td>
        </tr>
        <tr>
            <td>data.rows[x].TypeID</td>
            <td>int</td>
            <td>产品类型编号</td>
        </tr>
        <tr>
            <td>data.rows[x].Code</td>
            <td>string</td>
            <td>产品编码</td>
        </tr>
        <tr>
            <td>data.rows[x].Name</td>
            <td>string</td>
            <td>产品名称</td>
        </tr>
        <tr>
            <td>data.rows[x].Specification</td>
            <td>string</td>
            <td>产品规格</td>
        </tr>
        <tr>
            <td>data.rows[x].Unit</td>
            <td>string</td>
            <td>产品单位</td>
        </tr>
        <tr>
            <td>data.rows[x].Price</td>
            <td>double</td>
            <td>产品单价</td>
        </tr>
        <tr>
            <td>data.rows[x].Exchange</td>
            <td>bool</td>
            <td>产品是否支持兑换</td>
        </tr>
        <tr>
            <td>data.rows[x].ExPoint</td>
            <td>int</td>
            <td>产品兑换所需积分</td>
        </tr>
        <tr>
            <td>data.rows[x].Effective</td>
            <td>bool</td>
            <td>产品是否生效</td>
        </tr>
        <tr>
            <td>data.rows[x].Cover</td>
            <td>string</td>
            <td>产品封面图片</td>
        </tr>
        <tr>
            <td>data.rows[x].Remark</td>
            <td>string</td>
            <td>产品简介或描述</td>
        </tr>
        <tr>
            <td>data.rows[x].EShopCode</td>
            <td>string</td>
            <td>第三方对接编码</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据编号集合查询产品</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/getlistbyids</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>ids</td>
            <td>是</td>
            <td>使用多个编号拼接而成，分隔符号使用“|”，例如：“1|2|3”的产品编号</td>
        </tr>
        <tr>
            <td>effective</td>
            <td>否</td>
            <td>产品是否启用状态，留空为不过滤</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>列表数据</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>产品编号</td>
        </tr>
        <tr>
            <td>data[x].Sequence</td>
            <td>int</td>
            <td>产品排序</td>
        </tr>
        <tr>
            <td>data[x].CategoryID</td>
            <td>int</td>
            <td>产品分类编号</td>
        </tr>
        <tr>
            <td>data[x].TypeID</td>
            <td>int</td>
            <td>产品类型编号</td>
        </tr>
        <tr>
            <td>data[x].Code</td>
            <td>string</td>
            <td>产品编码</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>产品名称</td>
        </tr>
        <tr>
            <td>data[x].Specification</td>
            <td>string</td>
            <td>产品规格</td>
        </tr>
        <tr>
            <td>data[x].Unit</td>
            <td>string</td>
            <td>产品单位</td>
        </tr>
        <tr>
            <td>data.rows[x].Price</td>
            <td>double</td>
            <td>产品单价</td>
        </tr>
        <tr>
            <td>data[x].Exchange</td>
            <td>bool</td>
            <td>产品是否支持兑换</td>
        </tr>
        <tr>
            <td>data[x].ExPoint</td>
            <td>int</td>
            <td>产品兑换所需积分</td>
        </tr>
        <tr>
            <td>data[x].Effective</td>
            <td>bool</td>
            <td>产品是否生效</td>
        </tr>
        <tr>
            <td>data[x].Cover</td>
            <td>string</td>
            <td>产品封面图片</td>
        </tr>
        <tr>
            <td>data[x].Remark</td>
            <td>string</td>
            <td>产品简介或描述</td>
        </tr>
        <tr>
            <td>data[x].EShopCode</td>
            <td>string</td>
            <td>第三方对接编码</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据编号查询产品</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/getbyid</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>id</td>
            <td>是</td>
            <td>产品编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>ID</td>
            <td>int</td>
            <td>产品编号</td>
        </tr>
        <tr>
            <td>Sequence</td>
            <td>int</td>
            <td>产品排序</td>
        </tr>
        <tr>
            <td>CategoryID</td>
            <td>int</td>
            <td>产品分类编号</td>
        </tr>
        <tr>
            <td>TypeID</td>
            <td>int</td>
            <td>产品类型编号</td>
        </tr>
        <tr>
            <td>Code</td>
            <td>string</td>
            <td>产品编码</td>
        </tr>
        <tr>
            <td>Name</td>
            <td>string</td>
            <td>产品名称</td>
        </tr>
        <tr>
            <td>Specification</td>
            <td>string</td>
            <td>产品规格</td>
        </tr>
        <tr>
            <td>Unit</td>
            <td>string</td>
            <td>产品单位</td>
        </tr>
        <tr>
            <td>Price</td>
            <td>double</td>
            <td>产品单价</td>
        </tr>
        <tr>
            <td>Exchange</td>
            <td>bool</td>
            <td>产品是否支持兑换</td>
        </tr>
        <tr>
            <td>ExPoint</td>
            <td>int</td>
            <td>产品兑换所需积分</td>
        </tr>
        <tr>
            <td>Effective</td>
            <td>bool</td>
            <td>产品是否生效</td>
        </tr>
        <tr>
            <td>Cover</td>
            <td>string</td>
            <td>产品封面图片</td>
        </tr>
        <tr>
            <td>Remark</td>
            <td>string</td>
            <td>产品简介或描述</td>
        </tr>
        <tr>
            <td>EShopCode</td>
            <td>string</td>
            <td>第三方对接编码</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据编码查询产品</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/getbycode</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>code</td>
            <td>是</td>
            <td>产品编码</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>ID</td>
            <td>int</td>
            <td>产品编号</td>
        </tr>
        <tr>
            <td>Sequence</td>
            <td>int</td>
            <td>产品排序</td>
        </tr>
        <tr>
            <td>CategoryID</td>
            <td>int</td>
            <td>产品分类编号</td>
        </tr>
        <tr>
            <td>TypeID</td>
            <td>int</td>
            <td>产品类型编号</td>
        </tr>
        <tr>
            <td>Code</td>
            <td>string</td>
            <td>产品编码</td>
        </tr>
        <tr>
            <td>Name</td>
            <td>string</td>
            <td>产品名称</td>
        </tr>
        <tr>
            <td>Specification</td>
            <td>string</td>
            <td>产品规格</td>
        </tr>
        <tr>
            <td>Unit</td>
            <td>string</td>
            <td>产品单位</td>
        </tr>
        <tr>
            <td>Price</td>
            <td>double</td>
            <td>产品单价</td>
        </tr>
        <tr>
            <td>Exchange</td>
            <td>bool</td>
            <td>产品是否支持兑换</td>
        </tr>
        <tr>
            <td>ExPoint</td>
            <td>int</td>
            <td>产品兑换所需积分</td>
        </tr>
        <tr>
            <td>Effective</td>
            <td>bool</td>
            <td>产品是否生效</td>
        </tr>
        <tr>
            <td>Cover</td>
            <td>string</td>
            <td>产品封面图片</td>
        </tr>
        <tr>
            <td>Remark</td>
            <td>string</td>
            <td>产品简介或描述</td>
        </tr>
        <tr>
            <td>EShopCode</td>
            <td>string</td>
            <td>第三方对接编码</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>查询产品扩展信息</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/getextcontent</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>productid</td>
            <td>是</td>
            <td>产品编号</td>
        </tr>
        <tr>
            <td>usetype</td>
            <td>是</td>
            <td>扩展信息类型</td>
        </tr>
        <tr>
            <td>usejson</td>
            <td>是</td>
            <td>是否使用json形式返回（不使用json形式返回则直接返回字符串，适用于产品介绍等html内容）</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>string</td>
            <td>在usejson为真时扩展信息内容在本参数中返回</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据专区编号查询专区</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/getzonebyid</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>id</td>
            <td>是</td>
            <td>专区编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>ID</td>
            <td>int</td>
            <td>专区编号</td>
        </tr>
        <tr>
            <td>Sequence</td>
            <td>int</td>
            <td>专区排序</td>
        </tr>
        <tr>
            <td>ZoneGroup</td>
            <td>string</td>
            <td>所属分组</td>
        </tr>
        <tr>
            <td>Name</td>
            <td>string</td>
            <td>专区名称</td>
        </tr>
        <tr>
            <td>Cover</td>
            <td>string</td>
            <td>专区封面图片</td>
        </tr>
        <tr>
            <td>Effective</td>
            <td>bool</td>
            <td>是否有效</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据专区编号查询产品</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/getbyzoneid</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>rows</td>
            <td>是</td>
            <td>每页行数</td>
        </tr>
        <tr>
            <td>page</td>
            <td>是</td>
            <td>当前页数</td>
        </tr>
        <tr>
            <td>zoneid</td>
            <td>是</td>
            <td>专区编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>明细列表</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>商品编号</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>商品名称</td>
        </tr>
        <tr>
            <td>data[x].Cover</td>
            <td>string</td>
            <td>封面图片</td>
        </tr>
        <tr>
            <td>data[x].ExPoint</td>
            <td>int</td>
            <td>兑换微笑值</td>
        </tr>
        <tr>
            <td>data[x].Price</td>
            <td>int</td>
            <td>商品市场价</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>限时兑换</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/getlimittime</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>top</td>
            <td>是</td>
            <td>前几笔</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>明细列表</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>商品编号</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>商品名称</td>
        </tr>
        <tr>
            <td>data[x].Cover</td>
            <td>string</td>
            <td>封面图片</td>
        </tr>
        <tr>
            <td>data[x].SmileValue</td>
            <td>int</td>
            <td>兑换微笑值</td>
        </tr>
        <tr>
            <td>data[x].RestCount</td>
            <td>int</td>
            <td>剩余库存</td>
        </tr>
        <tr>
            <td>data[x].LimitEDate</td>
            <td>string</td>
            <td>限时结束日期</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>限量兑换</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/getlimitcount</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>top</td>
            <td>是</td>
            <td>前几笔</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>明细列表</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>商品编号</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>商品名称</td>
        </tr>
        <tr>
            <td>data[x].Cover</td>
            <td>string</td>
            <td>封面图片</td>
        </tr>
        <tr>
            <td>data[x].SmileValue</td>
            <td>int</td>
            <td>兑换微笑值</td>
        </tr>
        <tr>
            <td>data[x].RestCount</td>
            <td>int</td>
            <td>剩余库存</td>
        </tr>
        <tr>
            <td>data[x].Unit</td>
            <td>int</td>
            <td>单位</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据产品编号获取限时、限量</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/getlimitbyid</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>productid</td>
            <td>是</td>
            <td>产品编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>明细列表</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>编号</td>
        </tr>
        <tr>
            <td>data[x].SmileValue</td>
            <td>int</td>
            <td>兑换微笑值</td>
        </tr>
        <tr>
            <td>data[x].StockCount</td>
            <td>int</td>
            <td>总库存</td>
        </tr>
        <tr>
            <td>data[x].RestCount</td>
            <td>int</td>
            <td>剩余库存</td>
        </tr>
        <tr>
            <td>data[x].LimitCount</td>
            <td>int</td>
            <td>每人限兑数量</td>
        </tr>
        <tr>
            <td>data[x].LimitTime</td>
            <td>int</td>
            <td>是否限时</td>
        </tr>
        <tr>
            <td>data[x].LimitBDate</td>
            <td>int</td>
            <td>开始日期</td>
        </tr>
        <tr>
            <td>data[x].LimitEDate</td>
            <td>int</td>
            <td>结束日期</td>
        </tr>
        <tr>
            <td>data[x].ShareTitle</td>
            <td>int</td>
            <td>分享标题</td>
        </tr>
        <tr>
            <td>data[x].ShareContent</td>
            <td>int</td>
            <td>分享内容</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>根据产品编号获取限时、限量</h3>

    <p>请求说明</p>
    <p>http请求方式: post</p>
    <p>http://hub.engnice.com/scrm/product/getlimitbyids</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>ids</td>
            <td>是</td>
            <td>产品编号集合</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>明细列表</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>编号</td>
        </tr>
        <tr>
            <td>data[x].ProductID</td>
            <td>int</td>
            <td>产品编号</td>
        </tr>
        <tr>
            <td>data[x].SmileValue</td>
            <td>int</td>
            <td>兑换微笑值</td>
        </tr>
        <tr>
            <td>data[x].StockCount</td>
            <td>int</td>
            <td>总库存</td>
        </tr>
        <tr>
            <td>data[x].RestCount</td>
            <td>int</td>
            <td>剩余库存</td>
        </tr>
        <tr>
            <td>data[x].LimitCount</td>
            <td>int</td>
            <td>每人限兑数量</td>
        </tr>
        <tr>
            <td>data[x].LimitTime</td>
            <td>int</td>
            <td>是否限时</td>
        </tr>
        <tr>
            <td>data[x].LimitBDate</td>
            <td>int</td>
            <td>开始日期</td>
        </tr>
        <tr>
            <td>data[x].LimitEDate</td>
            <td>int</td>
            <td>结束日期</td>
        </tr>
        <tr>
            <td>data[x].ShareTitle</td>
            <td>int</td>
            <td>分享标题</td>
        </tr>
        <tr>
            <td>data[x].ShareContent</td>
            <td>int</td>
            <td>分享内容</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>猜你要兑换</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/product/getguesslist</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>用户编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>明细列表</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>商品编号</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>商品名称</td>
        </tr>
        <tr>
            <td>data[x].Cover</td>
            <td>string</td>
            <td>封面图片</td>
        </tr>
        <tr>
            <td>data[x].ExPoint</td>
            <td>int</td>
            <td>兑换微笑值</td>
        </tr>
        <tr>
            <td>data[x].Price</td>
            <td>int</td>
            <td>商品市场价</td>
        </tr>
    </table>
</div>